package edu.maimonides.ejercicios.ides1.sql.dao.hsql;

import java.sql.ResultSet;
import java.sql.SQLException;

import edu.maimonides.ejercicios.ides1.sql.ddl.hsql.ResultSetObjectFactory;
import edu.maimonides.ejercicios.ides1.sql.model.Persona;

public class PersonaFactory implements ResultSetObjectFactory<Persona> {

	public Persona createObject(ResultSet rs) throws SQLException {
		return new Persona(rs.getString(1),rs.getString(2), rs.getString(3));
	}

}
